Crate cursor_icon

source ·
Expand description

The cross platform cursor icon type.

This type is intended to be used as a standard interopability type between GUI frameworks in order to convey the cursor icon type.

Example

use cursor_icon::CursorIcon;

// Parse a cursor icon from the string that describes it.
let cursor_name = "pointer";
let cursor_icon: CursorIcon = cursor_name.parse()?;
println!("The cursor icon is {:?}", cursor_icon);

Structs

Enums

  • Describes the appearance of the (usually mouse) cursor icon.